################# Target per la compilazione (da ridefinire)
CC=gcc
CFLAGS=-Wall -pedantic -g #-O3 -Wuninitialized #-g

# Target per la creazione dell'eseguibile "wator" (***DA COMPLETARE***)



#################File(s) *.c *.h da consegnare (***DA COMPLETARE***)
FILE_DA_CONSEGNARE=


#################Non modificare
.PHONY: test clean consegna

test: 
	make clean
	make wator
	./testwator
	diff ./out1 ./out1.check
	@echo -e "\a\n **** Test superato! ****\n"

SUBJECT1="lcs08: consegna secondo frammento: wator"
#effettua il test e la consegna
consegna:
	make test
	./gruppo-check.pl < gruppo.txt
	tar -cvf $(USER)-f2wator.tar ./gruppo.txt Makefile $(FILE_DA_CONSEGNARE) 
	mpack -s $(SUBJECT1) ./$(USER)-f2wator.tar  susanna@di.unipi.it
	@echo -e "\a\n*** secondo FRAMMENTO CONSEGNATO! (wator) ***\n"

clean:
	-rm -f *~ ./out1 ./out2 *.o
